package com.codi.bus.core.service.organ;

import com.codi.bus.core.resultModel.BaseResult;
import com.codi.bus.core.service.model.ClientInfoModel;
import com.codi.bus.core.service.model.UserModel;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by asus on 2018/5/24.
 */
public interface OrganClientService {
    /**
     * 初始化机构用户资料
     *
     * @param userId
     * @param model
     */
    void initOrganInfo(Long userId, UserModel model, Long profileId);

    ClientInfoModel getExternalOrganClientInfo(Long userId, Long profileId);

    @Transactional
    BaseResult modifyOrganClientInfo(Long userId, String address, String addressCode, String occupation, String
        occupationCode, String beneficiary, String owner, boolean isSelf, Long profileId);

    Integer getOpenFlag(Long userId, Long profileId);
}
